package Entity;

import java.io.Serializable;

public class Hotel implements Serializable {
    private int hotelid;
    private String hotelname;
    private String star;
    private String logo;
    private String city;
    private String phone;
    private String introduce;
    private String addr;

    public Hotel(int hotelid, String hotelname, String star, String logo, String city, String phone, String introduce, String addr) {
        this.hotelid = hotelid;
        this.hotelname = hotelname;
        this.star = star;
        this.logo = logo;
        this.city = city;
        this.phone = phone;
        this.introduce = introduce;
        this.addr = addr;
    }

    public Hotel() {
    }

    public int getHotelid() {
        return hotelid;
    }

    public void setHotelid(int hotelid) {
        this.hotelid = hotelid;
    }

    public String getHotelname() {
        return hotelname;
    }

    public void setHotelname(String hotelname) {
        this.hotelname = hotelname;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }


    public String details() {
        return "酒店名称    :" +hotelname+"\n"+
                "酒店星级   :" + star +"\n"+
                "酒店介绍   :"+introduce+"\n"+
                "所在城市   :" + city +"\n"+
                "具体地址   :" + introduce +"\n"+
                "联系电话   :" + phone ;
    }

    public String cheap() {
        return hotelname+"\n"+introduce+"\n"+city;
    }

    @Override
    public String toString() {
        return "Hotel{" +
                "hotelid=" + hotelid +
                ", hotelname='" + hotelname + '\'' +
                ", star='" + star + '\'' +
                ", logo='" + logo + '\'' +
                ", city='" + city + '\'' +
                ", phone='" + phone + '\'' +
                ", introduce='" + introduce + '\'' +
                ", addr='" + addr + '\'' +
                '}';
    }
}

